package designparttendemo2.observer;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class UserEventObserver3 {
    @EventListener(UserEvent.class)
    public void listenUserEvent(UserEvent event){
        System.out.println(String.format("观察者3观察到事件:%s", event.getMessage()));
    }
}
